<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
    <title>MSPBots microsoft oauth redirect success!</title>
    <style>
        body {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000000;           
        }

        .content {          
            width: 750px;
            height: 300px;
            border: 1px solid #d1d1d1;
            border-radius: 8px;
            display: flex;
            align-items: center;          
            justify-content: space-evenly;
            flex-direction: column;
            background: #f1f1f1;
            display: block;
            /* position: fixed; */
            position: absolute;
            top: 50%;
            left: 50%;
            margin-left: -333px;
            margin-top: -200px;
            z-index: 10001;          
        }

        .content-css {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            width: 90%;
            margin: 0 auto;
            margin-left:30%;
        }

        .content-css > img {
            width: 30px;
            height: 30px;          
        }

        .card-text {
            font-size: 1em;
            font-weight: bold;
            margin-left: 10px;
            font-family: Roboto,sans-serif;
            word-break:normal;
       
        }

        .close-btn {
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 1em;
            background: #1866C0;
            color: #ffffff;
            font-weight: bold;
            font-family: Roboto,sans-serif;
            letter-spacing: 1.5px;
            cursor: pointer;
            width: 60px;
            margin: 0 auto;
            margin-top: 200px;
        }
    </style>
</head>
<body>
<div class="content">
    <div class="content-css">
        <img th:if="${status}==500"
             src=""
             alt="fail">
        <img th:if="${status}==200"
             src=""
             alt="success">
        <p class="card-text" th:text="${message}">Success!</p>
    </div>
    <div class="close-btn" onclick="openNewWin()">CLOSE</div>
</div>
<script type="text/javascript">
    function openNewWin() {
        window.close();
        
    }
</script>
</body>

</html>
